<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="ErrorMsg,com.cmiscm.utils.display.ErrorMsg,ERROR_CASE_CONFIG,ERROR_CASE_FONT,ERROR_CASE_SWF" name="keywords">
<title>com.cmiscm.utils.display.ErrorMsg</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ErrorMsg - cmiscm';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/cmiscm/utils/display/ErrorMsg.html&amp;com/cmiscm/utils/display/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ErrorMsg</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ErrorMsg"); titleBar_setSubNav(true,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.cmiscm.utils.display</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ErrorMsg</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">ErrorMsg <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> flash.display.Sprite</td>
</tr>
</table>
<p></p>
  Error Message.
  
  <p></p>
<br>
<span class="label">Example</span>
<br>   <div class='listing'><pre> 
   package {
        import flash.display.Sprite;
        import com.cmiscm.utils.display.ErrorMsg;
        import flash.events.Event;
        
        public class TestError extends Sprite
        {
            public function TestError()
            {
                 super();
                 this.addEventListener(Event.ADDED_TO_STAGE, onAdd);
             }
     
             private function onAdd(evt:Event):void
             {
                 evt.currentTarget.removeEventListener(evt.type, arguments.callee);
     
                 var error:ErrorMsg = new ErrorMsg(ErrorMsg.ERROR_CASE_CONFIG);
                 this.addChild(error);
            }
        }
     }
     </pre></div> 
     <p>
   Result:</p>
   <img src = "ErrorMsg0.gif" />
     <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ErrorMsg()">ErrorMsg</a>($str:String, $color:uint = 0x000000, $bgColor:uint = 0xFFFFFF, $mc:Sprite = null, $multi:Boolean = true)</div>
<div class="summaryTableDescription">
   Show error message 
   </div>
</td><td class="summaryTableOwnerCol">ErrorMsg</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ERROR_CASE_CONFIG">ERROR_CASE_CONFIG</a> : String = "failed to load config xml&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"<div class="summaryTableDescription">[static]
   failed to load config xml
   </div>
</td><td class="summaryTableOwnerCol">ErrorMsg</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ERROR_CASE_FONT">ERROR_CASE_FONT</a> : String = "failed to load font data file&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"<div class="summaryTableDescription">[static]
   failed to load font data file
   </div>
</td><td class="summaryTableOwnerCol">ErrorMsg</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ERROR_CASE_SWF">ERROR_CASE_SWF</a> : String = "failed to load swf data file&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"<div class="summaryTableDescription">[static]
   failed to load swf data file
   </div>
</td><td class="summaryTableOwnerCol">ErrorMsg</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ErrorMsg()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ErrorMsg</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ErrorMsg($str:String, $color:uint = 0x000000, $bgColor:uint = 0xFFFFFF, $mc:Sprite = null, $multi:Boolean = true)</code><p>
   Show error message 
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">$str</span>:String</code> &mdash; - Message
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$color</span>:uint</code> (default = <code>0x000000</code>)<code></code> &mdash; - Font color
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$bgColor</span>:uint</code> (default = <code>0xFFFFFF</code>)<code></code> &mdash; - Bg color
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$mc</span>:Sprite</code> (default = <code>null</code>)<code></code> &mdash; - Moviclip
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$multi</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; - Textfield multiline
   
   </td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="ERROR_CASE_CONFIG"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ERROR_CASE_CONFIG</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const ERROR_CASE_CONFIG:String = "failed to load config xml&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"</code><p>
   failed to load config xml
   </p></div>
<a name="ERROR_CASE_FONT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ERROR_CASE_FONT</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const ERROR_CASE_FONT:String = "failed to load font data file&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"</code><p>
   failed to load font data file
   </p></div>
<a name="ERROR_CASE_SWF"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ERROR_CASE_SWF</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const ERROR_CASE_SWF:String = "failed to load swf data file&lt;br&gt;&lt;font color='#999999'&gt;please refresh the page&lt;/font&gt;"</code><p>
   failed to load swf data file
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
